.class public Lcom/example/m6wmr/ChangecityActivity;
.super Landroid/app/Activity;
.source "ChangecityActivity.java"


# static fields
.field public static address:Lcom/example/m6wmr/ChangecityActivity;


# instance fields
.field addresslaout:Landroid/widget/LinearLayout;

.field private block1my:Landroid/widget/LinearLayout;

.field private block2my:Landroid/widget/LinearLayout;

.field private cursor:Landroid/database/Cursor;

.field private cv:Landroid/content/ContentValues;

.field private db:Landroid/database/sqlite/SQLiteDatabase;

.field public h:Landroid/os/Handler;

.field private helper:Ldbclass/DBOpenHelper;

.field keyWorldsView:Landroid/widget/EditText;

.field loginview:Landroid/view/View;

.field m:Lmyapp/MyApp;

.field private mcontext:Landroid/content/Context;

.field private myhistoryls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/searchBean;",
            ">;"
        }
    .end annotation
.end field

.field pd:Landroid/app/ProgressDialog;

.field registerview:Landroid/view/View;

.field private schls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/searchBean;",
            ">;"
        }
    .end annotation
.end field

.field shoplayout:Landroid/widget/LinearLayout;

.field private spbd:Ldata/searchData;

.field private sugAdapter:Landroid/widget/ArrayAdapter;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/widget/ArrayAdapter",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private tempschls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/searchBean;",
            ">;"
        }
    .end annotation
.end field

.field textView1:Landroid/widget/TextView;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 55
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 56
    iput-object v0, p0, Lcom/example/m6wmr/ChangecityActivity;->m:Lmyapp/MyApp;

    .line 59
    iput-object v0, p0, Lcom/example/m6wmr/ChangecityActivity;->h:Landroid/os/Handler;

    .line 60
    iput-object v0, p0, Lcom/example/m6wmr/ChangecityActivity;->shoplayout:Landroid/widget/LinearLayout;

    .line 61
    iput-object v0, p0, Lcom/example/m6wmr/ChangecityActivity;->pd:Landroid/app/ProgressDialog;

    .line 63
    iput-object v0, p0, Lcom/example/m6wmr/ChangecityActivity;->cursor:Landroid/database/Cursor;

    .line 72
    iput-object v0, p0, Lcom/example/m6wmr/ChangecityActivity;->sugAdapter:Landroid/widget/ArrayAdapter;

    .line 55
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/ChangecityActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 58
    iget-object v0, p0, Lcom/example/m6wmr/ChangecityActivity;->mcontext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/ChangecityActivity;)Ljava/util/List;
    .locals 1

    .prologue
    .line 71
    iget-object v0, p0, Lcom/example/m6wmr/ChangecityActivity;->schls:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$10(Lcom/example/m6wmr/ChangecityActivity;)Ljava/util/List;
    .locals 1

    .prologue
    .line 74
    iget-object v0, p0, Lcom/example/m6wmr/ChangecityActivity;->myhistoryls:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$2(Lcom/example/m6wmr/ChangecityActivity;)Ljava/util/List;
    .locals 1

    .prologue
    .line 71
    iget-object v0, p0, Lcom/example/m6wmr/ChangecityActivity;->tempschls:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/m6wmr/ChangecityActivity;)Ldata/searchData;
    .locals 1

    .prologue
    .line 69
    iget-object v0, p0, Lcom/example/m6wmr/ChangecityActivity;->spbd:Ldata/searchData;

    return-object v0
.end method

.method static synthetic access$4(Lcom/example/m6wmr/ChangecityActivity;)Ldbclass/DBOpenHelper;
    .locals 1

    .prologue
    .line 62
    iget-object v0, p0, Lcom/example/m6wmr/ChangecityActivity;->helper:Ldbclass/DBOpenHelper;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/m6wmr/ChangecityActivity;Landroid/database/Cursor;)V
    .locals 0

    .prologue
    .line 63
    iput-object p1, p0, Lcom/example/m6wmr/ChangecityActivity;->cursor:Landroid/database/Cursor;

    return-void
.end method

.method static synthetic access$6(Lcom/example/m6wmr/ChangecityActivity;)Landroid/database/Cursor;
    .locals 1

    .prologue
    .line 63
    iget-object v0, p0, Lcom/example/m6wmr/ChangecityActivity;->cursor:Landroid/database/Cursor;

    return-object v0
.end method

.method static synthetic access$7(Lcom/example/m6wmr/ChangecityActivity;)Landroid/database/sqlite/SQLiteDatabase;
    .locals 1

    .prologue
    .line 64
    iget-object v0, p0, Lcom/example/m6wmr/ChangecityActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    return-object v0
.end method

.method static synthetic access$8(Lcom/example/m6wmr/ChangecityActivity;)Landroid/widget/LinearLayout;
    .locals 1

    .prologue
    .line 73
    iget-object v0, p0, Lcom/example/m6wmr/ChangecityActivity;->block1my:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic access$9(Lcom/example/m6wmr/ChangecityActivity;)Landroid/widget/LinearLayout;
    .locals 1

    .prologue
    .line 73
    iget-object v0, p0, Lcom/example/m6wmr/ChangecityActivity;->block2my:Landroid/widget/LinearLayout;

    return-object v0
.end method


# virtual methods
.method public bindbtn()V
    .locals 2

    .prologue
    .line 327
    const v1, 0x7f0c0001

    invoke-virtual {p0, v1}, Lcom/example/m6wmr/ChangecityActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 328
    .local v0, "closebtn":Landroid/widget/ImageView;
    new-instance v1, Lcom/example/m6wmr/ChangecityActivity$7;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/ChangecityActivity$7;-><init>(Lcom/example/m6wmr/ChangecityActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 334
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 11
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    const v9, 0x7f070026

    .line 78
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 79
    const v7, 0x7f03000f

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/ChangecityActivity;->setContentView(I)V

    .line 81
    invoke-virtual {p0}, Lcom/example/m6wmr/ChangecityActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v7

    check-cast v7, Lmyapp/MyApp;

    iput-object v7, p0, Lcom/example/m6wmr/ChangecityActivity;->m:Lmyapp/MyApp;

    .line 82
    iget-object v7, p0, Lcom/example/m6wmr/ChangecityActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v7}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    .line 83
    .local v0, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 84
    iput-object p0, p0, Lcom/example/m6wmr/ChangecityActivity;->mcontext:Landroid/content/Context;

    .line 85
    sput-object p0, Lcom/example/m6wmr/ChangecityActivity;->address:Lcom/example/m6wmr/ChangecityActivity;

    .line 87
    new-instance v7, Ldbclass/DBOpenHelper;

    iget-object v8, p0, Lcom/example/m6wmr/ChangecityActivity;->mcontext:Landroid/content/Context;

    invoke-direct {v7, v8}, Ldbclass/DBOpenHelper;-><init>(Landroid/content/Context;)V

    iput-object v7, p0, Lcom/example/m6wmr/ChangecityActivity;->helper:Ldbclass/DBOpenHelper;

    .line 88
    iget-object v7, p0, Lcom/example/m6wmr/ChangecityActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v7}, Ldbclass/DBOpenHelper;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v7

    iput-object v7, p0, Lcom/example/m6wmr/ChangecityActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 90
    const/high16 v7, 0x7f0c0000

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/ChangecityActivity;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/LinearLayout;

    .line 91
    .local v5, "top":Landroid/widget/LinearLayout;
    const v7, 0x7f0c0036

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/ChangecityActivity;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/LinearLayout;

    .line 92
    .local v6, "top2":Landroid/widget/LinearLayout;
    const v7, 0x7f0c005a

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/ChangecityActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    .line 93
    .local v2, "iv":Landroid/widget/ImageView;
    const v7, 0x7f0c0013

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/ChangecityActivity;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    .line 95
    .local v4, "textView":Landroid/widget/TextView;
    iget-object v7, p0, Lcom/example/m6wmr/ChangecityActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v7}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v7

    const-string v8, "1"

    invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_0

    .line 96
    invoke-virtual {v5, v9}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 97
    invoke-virtual {v6, v9}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 98
    const v7, 0x7f02001c

    invoke-virtual {v2, v7}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 99
    const v7, -0xd53e87

    invoke-virtual {v4, v7}, Landroid/widget/TextView;->setTextColor(I)V

    .line 102
    :cond_0
    new-instance v7, Landroid/content/ContentValues;

    invoke-direct {v7}, Landroid/content/ContentValues;-><init>()V

    iput-object v7, p0, Lcom/example/m6wmr/ChangecityActivity;->cv:Landroid/content/ContentValues;

    .line 103
    const-string v7, "Marinactivity"

    const-string v8, "\u5f00\u59cb"

    invoke-static {v7, v8}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 104
    new-instance v7, Lcom/example/m6wmr/ChangecityActivity$1;

    invoke-direct {v7, p0}, Lcom/example/m6wmr/ChangecityActivity$1;-><init>(Lcom/example/m6wmr/ChangecityActivity;)V

    iput-object v7, p0, Lcom/example/m6wmr/ChangecityActivity;->h:Landroid/os/Handler;

    .line 128
    new-instance v7, Ljava/util/ArrayList;

    invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V

    iput-object v7, p0, Lcom/example/m6wmr/ChangecityActivity;->schls:Ljava/util/List;

    .line 129
    new-instance v7, Ljava/util/ArrayList;

    invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V

    iput-object v7, p0, Lcom/example/m6wmr/ChangecityActivity;->tempschls:Ljava/util/List;

    .line 130
    new-instance v7, Ljava/util/ArrayList;

    invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V

    iput-object v7, p0, Lcom/example/m6wmr/ChangecityActivity;->myhistoryls:Ljava/util/List;

    .line 131
    const v7, 0x7f0c001e

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/ChangecityActivity;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/EditText;

    iput-object v7, p0, Lcom/example/m6wmr/ChangecityActivity;->keyWorldsView:Landroid/widget/EditText;

    .line 132
    const-string v7, "Marinactivity"

    const-string v8, "\u7ed1\u5b9a\u6570\u636e"

    invoke-static {v7, v8}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 133
    const v7, 0x7f0c0057

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/ChangecityActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ListView;

    .line 134
    .local v3, "lv1":Landroid/widget/ListView;
    new-instance v7, Ldata/searchData;

    iget-object v8, p0, Lcom/example/m6wmr/ChangecityActivity;->mcontext:Landroid/content/Context;

    iget-object v9, p0, Lcom/example/m6wmr/ChangecityActivity;->schls:Ljava/util/List;

    .line 135
    invoke-virtual {p0}, Lcom/example/m6wmr/ChangecityActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v10

    invoke-direct {v7, v8, v9, v10, v3}, Ldata/searchData;-><init>(Landroid/content/Context;Ljava/util/List;Landroid/content/Context;Landroid/widget/ListView;)V

    .line 134
    iput-object v7, p0, Lcom/example/m6wmr/ChangecityActivity;->spbd:Ldata/searchData;

    .line 136
    const-string v7, "Marinactivity"

    const-string v8, "\u7ed1\u5b9a\u6570\u636e2"

    invoke-static {v7, v8}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 137
    const/4 v7, 0x0

    invoke-virtual {v3, v7}, Landroid/widget/ListView;->setCacheColorHint(I)V

    .line 138
    iget-object v7, p0, Lcom/example/m6wmr/ChangecityActivity;->spbd:Ldata/searchData;

    invoke-virtual {v3, v7}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 139
    new-instance v7, Lcom/example/m6wmr/ChangecityActivity$2;

    invoke-direct {v7, p0}, Lcom/example/m6wmr/ChangecityActivity$2;-><init>(Lcom/example/m6wmr/ChangecityActivity;)V

    invoke-virtual {v3, v7}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 179
    const v7, 0x7f0c0058

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/ChangecityActivity;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/LinearLayout;

    iput-object v7, p0, Lcom/example/m6wmr/ChangecityActivity;->block1my:Landroid/widget/LinearLayout;

    .line 180
    const v7, 0x7f0c0056

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/ChangecityActivity;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/LinearLayout;

    iput-object v7, p0, Lcom/example/m6wmr/ChangecityActivity;->block2my:Landroid/widget/LinearLayout;

    .line 181
    const-string v7, "Marinactivity"

    const-string v8, "\u5b9a\u4e49\u6570\u636e\u4fbf\u8981\u8fd8"

    invoke-static {v7, v8}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 182
    iget-object v7, p0, Lcom/example/m6wmr/ChangecityActivity;->keyWorldsView:Landroid/widget/EditText;

    new-instance v8, Lcom/example/m6wmr/ChangecityActivity$3;

    invoke-direct {v8, p0}, Lcom/example/m6wmr/ChangecityActivity$3;-><init>(Lcom/example/m6wmr/ChangecityActivity;)V

    invoke-virtual {v7, v8}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 208
    const-string v7, "Marinactivity"

    const-string v8, "\u521d\u59cb\u5316\u7ed3\u675f"

    invoke-static {v7, v8}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 210
    const v7, 0x7f0c0059

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/ChangecityActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    .line 211
    .local v1, "choicecitydefault":Landroid/widget/LinearLayout;
    new-instance v7, Lcom/example/m6wmr/ChangecityActivity$4;

    invoke-direct {v7, p0}, Lcom/example/m6wmr/ChangecityActivity$4;-><init>(Lcom/example/m6wmr/ChangecityActivity;)V

    invoke-virtual {v1, v7}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 226
    invoke-virtual {p0}, Lcom/example/m6wmr/ChangecityActivity;->bindbtn()V

    .line 228
    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 446
    iget-object v0, p0, Lcom/example/m6wmr/ChangecityActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    if-eqz v0, :cond_0

    .line 447
    iget-object v0, p0, Lcom/example/m6wmr/ChangecityActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    .line 449
    :cond_0
    iget-object v0, p0, Lcom/example/m6wmr/ChangecityActivity;->cursor:Landroid/database/Cursor;

    if-eqz v0, :cond_1

    .line 450
    iget-object v0, p0, Lcom/example/m6wmr/ChangecityActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 452
    :cond_1
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 454
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v1, 0x0

    .line 437
    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v0

    if-nez v0, :cond_0

    .line 438
    invoke-virtual {p0}, Lcom/example/m6wmr/ChangecityActivity;->finish()V

    .line 441
    :cond_0
    return v1
.end method

.method public onStart()V
    .locals 0

    .prologue
    .line 411
    invoke-virtual {p0}, Lcom/example/m6wmr/ChangecityActivity;->reloaddata()V

    .line 412
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 413
    return-void
.end method

.method public orderls_fresh(Ljava/lang/String;)V
    .locals 10
    .param p1, "locationString"    # Ljava/lang/String;

    .prologue
    .line 417
    iget-object v5, p0, Lcom/example/m6wmr/ChangecityActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v5}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    .line 418
    .local v0, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    const/4 v3, 0x0

    .line 419
    .local v3, "find":Z
    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v5

    :cond_0
    :goto_0
    invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z

    move-result v6

    if-nez v6, :cond_2

    .line 427
    if-eqz v3, :cond_1

    .line 428
    new-instance v4, Landroid/os/Message;

    invoke-direct {v4}, Landroid/os/Message;-><init>()V

    .line 429
    .local v4, "msg1":Landroid/os/Message;
    const/16 v5, 0x70

    iput v5, v4, Landroid/os/Message;->arg1:I

    .line 430
    iput-object p1, v4, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 431
    sget-object v5, Lcom/example/m6wmr/WaimaiActivity;->h:Landroid/os/Handler;

    invoke-virtual {v5, v4}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 435
    .end local v4    # "msg1":Landroid/os/Message;
    :cond_1
    return-void

    .line 419
    :cond_2
    invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Landroid/app/Activity;

    .line 420
    .local v2, "e":Landroid/app/Activity;
    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v7

    const-string v8, "."

    invoke-virtual {v7, v8}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v7

    add-int/lit8 v7, v7, 0x1

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v8

    const-string v9, "@"

    invoke-virtual {v8, v9}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v8

    invoke-virtual {v6, v7, v8}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v1

    .line 422
    .local v1, "checkname":Ljava/lang/String;
    const-string v6, "WaimaiActivity"

    invoke-virtual {v1, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_0

    .line 423
    const/4 v3, 0x1

    goto :goto_0
.end method

.method public reloaddata()V
    .locals 14

    .prologue
    const v13, 0x7f0c0013

    const v12, 0x7f030090

    const v11, -0xd53e87

    const/4 v10, 0x0

    .line 231
    const v6, 0x7f0c005b

    invoke-virtual {p0, v6}, Lcom/example/m6wmr/ChangecityActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    .line 232
    .local v1, "choicecitylist":Landroid/widget/LinearLayout;
    invoke-virtual {v1}, Landroid/widget/LinearLayout;->removeAllViews()V

    .line 233
    iget-object v6, p0, Lcom/example/m6wmr/ChangecityActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v6}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v6

    .line 234
    const-string v7, "select * from mapaddress where id > 0"

    .line 233
    invoke-virtual {v6, v7, v10}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v6

    iput-object v6, p0, Lcom/example/m6wmr/ChangecityActivity;->cursor:Landroid/database/Cursor;

    .line 236
    const-string v6, "Marinactivity"

    const-string v7, "\u8bfb\u53d6\u6570\u636e\u5e93\u7ed3\u675f"

    invoke-static {v6, v7}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 237
    const/4 v2, 0x0

    .line 238
    .local v2, "i":I
    iget-object v6, p0, Lcom/example/m6wmr/ChangecityActivity;->cursor:Landroid/database/Cursor;

    if-eqz v6, :cond_1

    .line 239
    :goto_0
    iget-object v6, p0, Lcom/example/m6wmr/ChangecityActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v6}, Landroid/database/Cursor;->moveToNext()Z

    move-result v6

    if-nez v6, :cond_2

    .line 296
    const-string v6, "Marinactivity"

    const-string v7, "\u7ed3\u675f"

    invoke-static {v6, v7}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 298
    iget-object v6, p0, Lcom/example/m6wmr/ChangecityActivity;->mcontext:Landroid/content/Context;

    invoke-static {v6, v12, v10}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v4

    .line 299
    .local v4, "tempview":Landroid/view/View;
    invoke-virtual {v4, v13}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    .line 300
    .local v5, "textView1":Landroid/widget/TextView;
    iget-object v6, p0, Lcom/example/m6wmr/ChangecityActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v6}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v6

    const-string v7, "1"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_0

    .line 301
    invoke-virtual {v5, v11}, Landroid/widget/TextView;->setTextColor(I)V

    .line 303
    :cond_0
    const-string v6, "\u6e05\u7a7a\u6570\u636e"

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 304
    const v6, 0x7f0c000a

    invoke-virtual {v4, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ImageView;

    .line 305
    .local v3, "imageView1":Landroid/widget/ImageView;
    const/16 v6, 0x8

    invoke-virtual {v3, v6}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 306
    invoke-virtual {v1, v4}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 307
    new-instance v6, Lcom/example/m6wmr/ChangecityActivity$6;

    invoke-direct {v6, p0}, Lcom/example/m6wmr/ChangecityActivity$6;-><init>(Lcom/example/m6wmr/ChangecityActivity;)V

    invoke-virtual {v4, v6}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 324
    .end local v3    # "imageView1":Landroid/widget/ImageView;
    .end local v4    # "tempview":Landroid/view/View;
    .end local v5    # "textView1":Landroid/widget/TextView;
    :cond_1
    return-void

    .line 240
    :cond_2
    const-string v6, "Marinactivity"

    const-string v7, "\u5316\u754c\u9762"

    invoke-static {v6, v7}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 241
    iget-object v6, p0, Lcom/example/m6wmr/ChangecityActivity;->mcontext:Landroid/content/Context;

    invoke-static {v6, v12, v10}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v4

    .line 243
    .restart local v4    # "tempview":Landroid/view/View;
    new-instance v0, Lbean/searchBean;

    invoke-direct {v0}, Lbean/searchBean;-><init>()V

    .line 245
    .local v0, "bc":Lbean/searchBean;
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v0, v6}, Lbean/searchBean;->setId(Ljava/lang/String;)V

    .line 246
    iget-object v6, p0, Lcom/example/m6wmr/ChangecityActivity;->cursor:Landroid/database/Cursor;

    iget-object v7, p0, Lcom/example/m6wmr/ChangecityActivity;->cursor:Landroid/database/Cursor;

    const-string v8, "lat"

    invoke-interface {v7, v8}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v7

    invoke-interface {v6, v7}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v0, v6}, Lbean/searchBean;->setlat(Ljava/lang/String;)V

    .line 247
    iget-object v6, p0, Lcom/example/m6wmr/ChangecityActivity;->cursor:Landroid/database/Cursor;

    iget-object v7, p0, Lcom/example/m6wmr/ChangecityActivity;->cursor:Landroid/database/Cursor;

    const-string v8, "lng"

    invoke-interface {v7, v8}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v7

    invoke-interface {v6, v7}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v0, v6}, Lbean/searchBean;->setlng(Ljava/lang/String;)V

    .line 248
    iget-object v6, p0, Lcom/example/m6wmr/ChangecityActivity;->cursor:Landroid/database/Cursor;

    iget-object v7, p0, Lcom/example/m6wmr/ChangecityActivity;->cursor:Landroid/database/Cursor;

    const-string v8, "name"

    invoke-interface {v7, v8}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v7

    invoke-interface {v6, v7}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v0, v6}, Lbean/searchBean;->setname(Ljava/lang/String;)V

    .line 249
    iget-object v6, p0, Lcom/example/m6wmr/ChangecityActivity;->myhistoryls:Ljava/util/List;

    invoke-interface {v6, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 250
    invoke-virtual {v4, v2}, Landroid/view/View;->setId(I)V

    .line 251
    const-string v6, "Marinactivity"

    const-string v7, "setid\u7ed3\u675f"

    invoke-static {v6, v7}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 252
    invoke-virtual {v4, v13}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/TextView;

    iput-object v6, p0, Lcom/example/m6wmr/ChangecityActivity;->textView1:Landroid/widget/TextView;

    .line 253
    iget-object v6, p0, Lcom/example/m6wmr/ChangecityActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v6}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v6

    const-string v7, "1"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_3

    .line 254
    iget-object v6, p0, Lcom/example/m6wmr/ChangecityActivity;->textView1:Landroid/widget/TextView;

    invoke-virtual {v6, v11}, Landroid/widget/TextView;->setTextColor(I)V

    .line 256
    :cond_3
    iget-object v6, p0, Lcom/example/m6wmr/ChangecityActivity;->textView1:Landroid/widget/TextView;

    iget-object v7, p0, Lcom/example/m6wmr/ChangecityActivity;->cursor:Landroid/database/Cursor;

    iget-object v8, p0, Lcom/example/m6wmr/ChangecityActivity;->cursor:Landroid/database/Cursor;

    const-string v9, "name"

    invoke-interface {v8, v9}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v8

    invoke-interface {v7, v8}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 257
    invoke-virtual {v1, v4}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 258
    new-instance v6, Lcom/example/m6wmr/ChangecityActivity$5;

    invoke-direct {v6, p0}, Lcom/example/m6wmr/ChangecityActivity$5;-><init>(Lcom/example/m6wmr/ChangecityActivity;)V

    invoke-virtual {v4, v6}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 293
    add-int/lit8 v2, v2, 0x1

    goto/16 :goto_0
.end method

.method public setbaidutosiet()Z
    .locals 1

    .prologue
    .line 338
    new-instance v0, Lcom/example/m6wmr/ChangecityActivity$8;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/ChangecityActivity$8;-><init>(Lcom/example/m6wmr/ChangecityActivity;)V

    .line 404
    invoke-virtual {v0}, Lcom/example/m6wmr/ChangecityActivity$8;->start()V

    .line 405
    const/4 v0, 0x0

    return v0
.end method
